Temporary tuple0 python object was not freed at the end of
xspy_set_permissions() in case no error occurred. To reduce code
duplication, this path reuses the cleanup code.
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
xs_transaction_t th;
char *thstr;
+ PyObject *ret = NULL;
if (!xh)
goto exit;
goto exit;
}
- free(xsperms);
Py_INCREF(Py_None);
- return Py_None;
+ ret = Py_None;
exit:
Py_XDECREF(tuple0);
free(xsperms);
- return NULL;
+ return ret;
}
#define xspy_watch_doc "\n" \